#define _CRT_SECURE_NO_WARNINGS 1
bool CheckPermutation(char* s1, char* s2) {
    if (*s1 == '\0' && *s2 == '\0')
    {
        return true;
    }
    if (*s1 == '\0' || *s2 == '\0')
    {
        return false;
    }
    int len1 = strlen(s1);
    int len2 = strlen(s2);
    if (len1 != len2)
    {
        return false;
    }
    int hash1[128] = { 0 };
    int hash2[128] = { 0 };
    for (int i = 0; i < len1; i++)
    {
        hash1[s1[i]]++;
        hash2[s2[i]]++;
    }
    for (int i = 0; i < 128; i++)
    {
        if (hash1[i] != hash2[i])
        {
            return false;
        }
    }
    return true;
}